/*
 * @Date: 2022-06-29 18:22:38
 * @LastEditors: eric shijie.zhu@jgdt.com
 * @LastEditTime: 2022-09-26 09:26:30
 * @Description: git commit规范规约
 */
module.exports = {
  ignores: [commit => commit.includes('init')],
  extends: ['@commitlint/config-conventional'],
  rules: {
    'body-leading-blank': [2, 'always'],
    'footer-leading-blank': [1, 'always'],
    'header-max-length': [2, 'always', 72],
    'subject-empty': [2, 'never'],
    'type-empty': [2, 'never'],
    'type-enum': [2, 'always', ['feat', 'fix', 'style', 'docs', 'test', 'refactor', 'chore', 'revert']]
  }
};
